home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Zoners Half-Life Tools / make.w32 < prev    next >
Text File  |  2001-04-18  |  4KB  |  121 lines

  1. #// Copyright (C) 2000  Sean Cavanaugh
  2. #// This file is licensed under the terms of the GNU Public License
  3. #// (see GPL.txt, or http://www.gnu.org/copyleft/gpl.txt)
  4.  
  5. #
  6. # Intel C++ Compiler (4.0), mostly MSVC 'compatible' command line
  7. #
  8.  
  9. ifeq ($(PLATFORM),win32)
  10. ifeq ($(COMPILER_BASE),msvc)
  11. DEFINES+=-D STDC_HEADERS -D __LITTLE_ENDIAN__
  12. EXEEXT:=.exe
  13. OBJEXT:=.obj
  14. LIBEXT:=.lib
  15. DLLEXT:=.dll
  16. CPPFLAGS:=-nologo -G6 -Gr -GX -GR- -c
  17. CCFLAGS:=-nologo -G6 -Gr -c
  18. LIB_FLAGS:=-nologo -lib
  19. DLL_FLAGS:=-nologo -dll
  20. WINEXE_FLAGS:=-nologo -machine:i386 -subsystem:windows -stack:0x400000,0x100000 -nodefaultlib:libmm -nodefaultlib:libmmd -nodefaultlib:libmmt -nodefaultlib:libc -nodefaultlib:libcd
  21. CONEXE_FLAGS:=-nologo -machine:i386 -subsystem:console -stack:0x400000,0x100000 -nodefaultlib:libmm -nodefaultlib:libmmd -nodefaultlib:libmmt -nodefaultlib:libc -nodefaultlib:libcd
  22. ifeq ($(UNICODE),1)
  23. WINEXE_FLAGS+=-entry:wWinMainCRTStartup
  24. CONEXE_FLAGS+=
  25. endif
  26. RSC_FLAGS:=-l 0x409 -D _AFXDLL 
  27. COM_LIBS:=gdi32.lib advapi32.lib ole32.lib user32.lib
  28.  
  29. ifeq ($(COMPILER),msvc)
  30. DEFINES += -D MS_COMPILER
  31. endif
  32.  
  33. ifeq ($(COMPILER),intel)
  34. DEFINES += -D INTEL_COMPILER
  35. # Standard warnings we just never want to care about (intel compiler is picky)
  36. #
  37. # remark #1: last line of file ends without a newline
  38. # remark #193: zero used for undefined preprocessing identifier
  39. # remark #279: controlling expression is constant
  40. # remark #304: access control not specified ("public" by default)
  41. # remark #383: value copied to temporary, reference to temporary used
  42. # remark #981: operands are evaluated in unspecified order
  43. # warnings to always ignore
  44. CPPFLAGS += -Qwd1 -Qwd193 -Qwd279 -Qwd304 -Qwd383 -Qwd981
  45. CCFLAGS +=  -Qwd1 -Qwd193 -Qwd279 -Qwd304 -Qwd383 -Qwd981
  46.  
  47. # Enable/Disable some of the noisy lint warnings
  48. #
  49. # remark #177: variable "THIS_FILE" was declared but never referenced
  50. # remark #869: parameter "pDummy" was never referenced
  51. # remark #444: destructor for base class "dummy" is not virtual
  52. ifneq ($(LINT),1)
  53. CPPFLAGS += -Qwd177 -Qwd869 -Qwd444 -Qwd181
  54. CCFLAGS  += -Qwd177 -Qwd869 -Qwd444 -Qwd181
  55. # LINT==1
  56. endif
  57. # COMPILER==intel
  58. endif
  59.  
  60.  
  61. ifeq ($(LINT),1)
  62. CPPFLAGS += -W4
  63. CCFLAGS  += -W4
  64. else
  65. CPPFLAGS += -W3
  66. CCFLAGS  += -W3
  67. endif
  68.  
  69. ifeq ($(COMPILER),intel)
  70. CC:=icl
  71. CPP:=icl
  72. LINK:=xilink
  73. endif
  74. ifeq ($(COMPILER),msvc)
  75. CC:=cl
  76. CPP:=cl
  77. LINK:=link
  78. endif
  79.  
  80. IDL:=midl
  81. RSC:=rc
  82.  
  83. ifeq ($(MODE),super_debug)
  84. # Debug
  85. CPPFLAGS += -MTd -Zi -ZI -Od -GZ -Qvc6
  86. CCFLAGS  += -MTd -Zi -ZI -Od -GZ -Qvc6
  87. WINEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  88. CONEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  89. endif
  90. ifeq ($(MODE),debug)
  91. # Debug
  92. CPPFLAGS += -MT -Zi -ZI -Od -GZ -Qvc6
  93. CCFLAGS  += -MT -Zi -ZI -Od -GZ -Qvc6
  94. WINEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  95. CONEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  96. endif
  97. ifeq ($(MODE),release)
  98. # Release 
  99. CPPFLAGS += -nologo -MT -O1 -Qip -Qipo
  100. CCFLAGS  += -nologo -MT -O1 -Qip -Qipo
  101. WINEXE_FLAGS += -incremental:no -Qipo
  102. CONEXE_FLAGS += -incremental:no -Qipo
  103. endif
  104. ifeq ($(MODE),release_w_symbols)
  105. # Release 
  106. CPPFLAGS += -nologo -MT -Zi -O1
  107. CCFLAGS  += -nologo -MT -Zi -O1
  108. WINEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  109. CONEXE_FLAGS += -debug -fixed:no -incremental:no -debugtype:both
  110. endif
  111.  
  112. ifeq ($(MAPS),1)
  113. WINEXE_FLAGS += -map
  114. CONEXE_FLAGS += -map
  115. endif
  116.  
  117. # COMPILER==intel
  118. endif
  119. # PLATFORM==win32
  120. endif
  121.